Method and system for creating and implementing zones within a fibre channel system

ABSTRACT

In a system comprising a first fabric and a plurality of devices coupled to the fabric by Fibre Channel connections, the devices are logically grouped to form configurations and zones. A configuration includes at least one zone, and each zone includes at least one device as a member of the zone. Communications between the devices is restricted according to the configuration currently in effect. For example, one device may be permitted to communicate with another device only if they are members of a common zone.

CROSS-REFERENCE TO RELATED APPLICATION

[0001] This application is a continuation of U.S. patent applicationSer. No. 09/426,567 filed Oct. 22, 1999, which claims the benefit ofU.S. Provisional Patent Application Serial No. 60/105,423, “Zoning”, byDavid Banks, Kumar Malavalli, Paul Ramsay, Kha Sin Teow, and JiemingZhu, filed Oct. 23, 1998, both of which are incorporated herein byreference.

BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention

[0003] This invention relates generally to a method for creating andimplementing zones within a network communication system, and moreparticularly to a method for creating and implementing such zones fordevices within a network communication system using Fibre Channelconnections.

[0004] 2. Description of the Related

[0005] As the result of continuous advances in technology, particularlyin the area of networking such as the Internet; there is an increasingdemand for communications bandwidth. For example, the transmission ofdata over a telephone company's trunk lines, the transmission of imagesor video over the Internet, the transfer of large amounts of data asmight be required in transaction processing, or videoconferencingimplemented over a public telephone network typically require the highspeed transmission of large amounts of data. As applications such asthese become more prevalent, the demand for communications bandwidthcapacity will only increase.

[0006] Fibre Channel is a transmission medium that is well-suited tomeet this increasing demand, and the Fibre Channel family of standards(developed by the American National Standards Institute (ANSI)) is oneexample of a standard which defines a high speed communicationsinterface for the transfer of large amounts of data via connectionsbetween a variety of hardware devices, including devices such aspersonal computers, workstations, mainframes, supercomputers, andstorage devices. Use of Fibre Channel is proliferating in manyapplications, particularly client/server applications which demand highbandwidth and low latency I/O. Examples of such applications includemass storage, medical and scientific imaging, multimedia communications,transaction processing, distributed computing and distributed databaseprocessing applications.

[0007] In one aspect of the Fibre Channel standard, the communicationsbetween devices is based on the use of a fabric. The fabric is typicallyconstructed from one or more Fibre Channel switches and each device (orgroup of devices, for example, in the case of loops) is coupled to thefabric. Devices coupled to the fabric are capable of communicating withevery other device coupled to the fabric.

[0008] However, there are situations where the ability to freelycommunicate between all devices on a fabric is not desirable. Forexample, it may be desirable to screen off certain devices on a fabricin order to perform testing and/or maintenance activities on only thosedevices, without risking interfering with the other devices on thefabric. Alternately, devices may be segregated according to use. Forexample, the devices coupled to the fabric may be segregated in onefashion during normal operation and in another fashion to facilitateback-ups or system maintenance. As another example, different levels ofsecurity may be enforced by allowing only certain sets of devices tocommunicate with each other. As a final example, devices may besegregated according to operating system or other technical features.

[0009] Conventional Fibre Channel fabric topologies do not allow thelogical segregation of devices which are coupled to the same fabric.Rather, devices can be prevented from communicating with each othertypically only if they are actually physically separated (e.g., coupledto different fabrics). However, this method does not facilitate thedynamic re-configuration of connections between devices since eachre-configuration requires a physical recoupling of devices.

[0010] Thus, there is a need to configure a fabric so as to restrictcommunications between sets of devices connected to the fabric. There isfurther a need to be able to dynamically re-configure the fabric and tosupport multiple configurations of device connections.

SUMMARY OF THE INVENTION

[0011] In accordance with the present invention, a method is for use ina system comprising a first fabric and a plurality of devices coupled tothe first fabric by Fibre Channel connections. The method is forlogically organizing the devices and includes the following steps. Adefinition of a first configuration is accessed. The first configurationincludes at least one zone, and each zone includes at least one deviceas a member of the zone. Responsive to the definition of the firstconfiguration, communications between the devices coupled to the firstfabric is restricted. The first configuration may be an effective one ofa plurality of configurations. The members of each zone may beidentified in a number of ways, including by the port on the fabric towhich the member device is coupled, by a name for the device which isindependent of the device's location on the fabric, or by an arbitratedloop physical address.

[0012] In one embodiment, communications between devices are restrictedas follows. When a first device queries for the address of a seconddevice, the address is returned only if the first and second device aremembers of a common zone. This prevents the first device from learningthe addresses of other devices connected to the fabric but not within acommon zone with the first device. Alternately or additionally,communications may be restricted by blocking communications betweendevices if they are not members of a common zone. In another aspect ofthe invention, at least one zone is characterized by a type ofcommunication, such as read-only access or a specific communicationsprotocol, and communications within that zone are restricted to thespecified type of communication.

[0013] In another aspect of the invention, zoning configurationinformation is stored within the fabric itself and/or the zoningfunctionality is implemented by the fabric. Additionally, the zoningconfiguration information and/or zoning functionality may be distributedamong the individual fabric elements which make up the fabric.

[0014] In another aspect of the invention, a fabric element includes aplurality of ports, a storage medium, and a logic device coupled to eachof the foregoing. Each port is adapted to be coupled to a device by aFibre Channel connection. The storage medium is for storing a definitionof the first configuration. The logic device restricts communicationsfor devices coupled to the plurality of ports, responsive to thedefinition of the first configuration.

[0015] In yet another aspect, of the invention, zoning is implemented bysoftware.

[0016] Zoning is advantageous because it overcomes many of thelimitations of completely open connectivity between all devices coupledto the fabric. Zoning allows for the creation of segmentation or zoneswithin a fabric. This allows the devices coupled to the fabric to besubdivided into logical groups of devices without the need to physicallyre-configure the network. Zones may be used to create different usergroups, test and maintenance areas, and/or security barriers betweendevices. Zones are dynamic and can be easily and quickly changed to suitvarying network needs.

BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The present invention has other advantages and features whichwill be more readily apparent from the following detailed description ofthe invention and the appended claims, when taken in conjunction withthe accompanying drawings, in which:

[0018]FIG. 1 is a diagram of a Fibre Channel network communicationsystem 100 utilizing zoning in accordance with the present invention;

[0019]FIG. 2 is a diagram of system 100 utilizing a second example ofzoning;

[0020]FIG. 3 is a flow diagram of a method of zoning in accordance withthe present invention;

[0021]FIG. 4 is a diagram of a preferred embodiment 400 of Fibre Channelsystem 100 utilizing zoning;

[0022]FIG. 5 is a flow diagram of a preferred method of zoning based onthe Simple Name Server (SNS); and

[0023]FIG. 6 is a flow diagram of another preferred method of zoning.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0024]FIG. 1 is a diagram of a Fibre Channel network communicationsystem 100 utilizing zoning in accordance with the present invention. Asused herein, the term “Fibre Channel” refers to the Fibre Channel familyof standards as well as other flexible, expandable network connectivitysystems capable of moving data over long distances and supporting avariety of protocols. The Fibre Channel network communication system 100comprises a fabric 110 and a plurality of devices 120, 122, and 124and/or groups of devices 130. Fabric 110 is coupled to the variousdevices 120, 122, 124, and 130, and acts as a switching network to allowthe devices to communicate with each other.

[0025] In the examples which follow, fabric 110 is a Fibre Channelnetwork made up of one or more interconnected Fibre Channel switches(not shown in FIG. 1, although the invention is not limited to suchfabrics or to Fibre Channel. Devices 120, 122, 124 may be any type ofdevice, such as a computer or a peripheral, and are coupled to thefabric 110 using a point-to-point topology. Fabric 110 is also coupledto loop 130. Loop 130 includes a hub 132 and devices 134, 136, and 138,which are coupled in a loop topology. In a preferred embodiment, theloop 130 comprises an arbitrated loop with ring connections forproviding multiple nodes with the ability to arbitrate access to ashared bandwidth.

[0026] In FIG. 1, Fibre Channel system 100 includes two zones 140 and142. Zone 140 contains device 120 and device 122. Zone 142 containsdevice 124 and loop 130. Devices within the same zone may communicatewith each other. Thus, for example, devices 120 and 122 may communicatewith each other because they are both members of zone 140. Likewise,device 124 and loop 130 may communicate with each other because they areboth members of zone 142. However, device 124 cannot communicate withdevice 120 because device 124 and device 120 are not members of a commonzone. Similarly, device 124 cannot communicate with device 122; and loop130 cannot communicate with either device 120 or device 122.

[0027] Zone 140 and zone 142 may be designated to be in effect atseparate times or at the same time. If zones 140 and 142 are in effectat the same time, they would constitute a zone configuration 150. When azone configuration is in effect, all zones that are members of thatconfiguration are in effect.

[0028]FIG. 2 is a diagram of system 100 illustrating another exampleconfiguration 210. Configuration 210 includes zones 140 and 200. Zone140 is as defined in FIG. 1. Zone 200 includes devices 120 and 124. Adevice may be a member of more than one zone concurrently, as shown bydevice 120 which is a member of both zone 140 and zone 200. Device 120may communicate with both device 122 and device 124. However, device 122may not communicate directly with device 124, and vice versa.Furthermore, in configuration 210, loop 130 may not communicate with anyof the devices 120, 122, or 124.

[0029] Note that zone configurations 150 and 210 may be stored andrecalled at various times, thus facilitating the implementation ofzones. For example, configuration 150 may be the configuration which isnormally in effect because devices 120 and 122 are used by one group ofpeople and device 124 and loop 130 are used by another group.Configuration 210 may be used when loop 130 requires servicing. Notethat in configuration 210, loop 130 is isolated from the other devices,which would minimize any disruption to devices 120, 122, and 124; anddevices 120 and 124 are zoned together, perhaps because device 120serves as a temporary substitute to loop 130.

[0030]FIG. 3 is a flow diagram of a method of zoning in accordance withthe present invention. In step 300, a zone configuration is defined. Forexample, in FIG. 1, zone configuration 150 would be defined to includezones 140 and 142, each of which is defined to include their respectivedevices. As noted above, any zones which are in effect at the same timemake up a zone configuration. Hence, defining a zone inherently alsodefines a zone configuration (i.e., the configuration consisting of thedefined zone); so step 300 is not intended to require the explicitdefinition of a configuration. For example, in FIG. 1, supposed thatthere was only one zone: zone 140. Defining zone 140 would also definethe configuration including zone 140. In step 310, the zoningconfiguration is implemented. As described previously, implementation ofa configuration restricts communications between devices according tothe zones in the configuration.

[0031] Zoning is beneficial for a number of reasons. For example, itallows for greater flexibility in managing a network. In oneapplication, different zones could be defined for different user groupswith each zone set up to meet the needs of the corresponding user group.Zoning can also be used to set up barriers between different operatingenvironments, to deploy logical fabric subsets by creating closed usergroups, or to create test and maintenance areas that are separate fromthe rest of the fabric. Zoning allows the network to be subdivided forthese and other purposes in a dynamic fashion and without the need torestructure the physical configuration of the network. This makeslogically separating devices from each other faster, safer and easier.

[0032] Zoning may be implemented in a variety of different ways andFIGS. 4-6 illustrate two preferred embodiments for implementing zoningwithin a Fibre Channel system. FIG. 4 is a diagram of a preferredembodiment 400 of Fibre Channel system 100 utilizing zoning. FIG. 4shows further details of the fabric 110, devices 120, 122 and 124, andloop 130. Fabric 110 is comprised of three fabric elements 420, 440 and450, preferably Silkworm switches series 2100, 2400, or 2800manufactured by Brocade. Each switch 420, 440 and 450 contains ports towhich devices may be coupled. In a preferred embodiment, these ports areimplemented on Application Specific Integrated Circuits (ASICs) that maybe plugged into or removed from a switch, thus allowing modularityregarding what ports are supported by each switch. Different types ofports support different types of connections from devices to a switch.An F_Port is a label used to identify a port of a fabric that is used todirectly couple the fabric to a single device, such as a computer orperipheral. An FL_Port is a label used to identify a port of a fabricthat is used to couple the fabric to a loop. The F_Port and the FL_Portsshall be referenced jointly as Fx_Ports. An E_Port is a label used toidentify an inter-switch expansion port used to connect to an E_Port ofanother switch in order to build a larger switch fabric.

[0033] For this example, the relevant ports on switch 420 are F_Ports422 and 432 and E_Ports 424 and 434. Similarly, switch 440 contains anF_Port 442 and E_Ports 444 and 446. Switch 450 contains an FL_Port 452and two E_Ports 454 and 456.. Switch 420 is coupled to switch 450 viaE_Ports 434 and E_Port 454. Switch 450 is coupled to switch 440 viaE_Port 456 and E_Port 446. Switch 440 is coupled to switch 420 viaE_Port 444 and E_Port 424.

[0034] Devices coupled to the fabric are also identified as ports. AnN_Port is a label used to identify a device coupled to the fabric.Device 120 is coupled to switch 420 via N_Port 460 and F_Port 422;device 124 is coupled to switch 420 via N_Port 470 and F_Port 432; anddevice 122 is coupled to switch 440 via N_Port 480 and F_Port 442. AnNL_Port is a label used to identify a device which is coupled to thefabric using a loop topology. Devices 134, 136, and 138 are coupled toloop 130 via NL_Ports 496, 494 and 492, respectively. Loop 130, in turn,is coupled to switch 450 via FL_Port 452. The N_Ports and the NL_Portsshall be referenced jointly as Nx Ports.

[0035] Each switch 420, 440 and 450 also contains an embedded centralprocessing unit (CPU) module 428,448 and 458 which controls the switch.These CPU modules typically include some sort of processor as well aslocal memory. As part of this control, each embedded CPU module 428, 448and 458 provides support to its associated switch for operating a SimpleName Server (SNS) module. The SNS in a fabric provides addressinformation to devices about other devices connected to the fabric. Aspart of the Fibre Channel standard, Nx_Ports joining a fabric typicallymust register their Fibre Channel attributes with the SNS. Theytypically also query the SNS for address information and attributes ofother devices (e.g., other Nx_Ports) on the fabric. In response, the SNSprovides an address list of other devices on the fabric. If addressinformation changes at a later time, for example due to zoning changes,the fabric sends a change signal to each device to instruct them torequery the SNS for updated address information.

[0036] It should be understood that the examples discussed herein arepurely illustrative. For example, referring to FIG. 4, fabric 110 may becomprised of a single switch or large numbers of switches. Other E_Portconnection combinations could be used to couple the switches 420, 440,and 450 together to form fabric 110. Similarly, other number and typesof ports may be contained within each switch. The composition ofconfigurations 150 and 210 from FIGS. 1 and 2, and of the zones withinthese configurations is also merely illustrative.

[0037]FIG. 5 is a flow diagram of a preferred method of implementingzoning based on the Simple Name Server (SNS). Additional zoning softwareis added to the existing SNS addressing functions to implement zoning.This zoning software loads zoning configuration information in the formof a database into the CPU of each switch. The zoning configurationdatabase is replicated and propagated to each individual fabric switch.For example, referring to the example of FIG. 4, each switch 420, 440and 450 would have a copy of the information defining configurations 150and 210. The SNS will use this zoning configuration information todetermine which devices are allowed to communicate with each other underthe zoning configuration in effect. Since each switch maintains its owncopy of the zoning information, a single switch failure will notinterrupt zoning enforcement to other devices on the fabric.

[0038] In step 500, a device attached to the fabric queries the SNSregarding address information for other devices attached to the fabric.This typically occurs, for example, when a device is first coupled tothe fabric in order for the device to determine what other devices areattached to the fabric. If the addressing information contained in theSNS or the zoning information changes, the SNS sends a signal to alldevices instructing them to requery 500 the SNS for updated addressinformation. In FIG. 4, when device 122 first attaches to the fabric110, device 122 may query 500 the SNS (which is implemented as softwarerunning on CPU 448) to learn what other devices are also attached tofabric 110. This information is provided as a table of addresses withwhich device 122 may communicate. If the zoning configuration for thefabric 110 changes, device 122 will receive a signal from the SNSinstructing it to re-load the address database, in which case device 122will repeat step 500.

[0039] In step 510, the SNS processes the request for information understandard SNS operating procedures. In the current example, in responseto device 122's queries, an SNS without zoning capability would identifydevices 120 and 124 and loop 130 as being attached to the fabric 110,and would return the addresses of all of these devices. Device 122 wouldthen have the addresses of these other devices and would be able tocommunicate with them.

[0040] However, a fabric with the zoning software enabled performs anadditional feature. If a zone configuration is enabled in the fabric110, the SNS does not automatically send back a list of all devicesconnected to the fabric 110. Rather, in step 520, a zone check isperformed. The zoning software uses the zoning configuration informationto determine which devices share a common zone. Each device address tobe provided to another device requesting an address update is checked toensure the two devices share a common zone. The SNS replies in step 540only with the addresses of those devices sharing a common zone with therequesting device. The addresses of devices which are not in the samezone as the requesting device are not returned as shown in step 530 and,therefore, the requesting device does not know that these other devicesexist. This effectively makes devices not within the same zone invisibleto each other, although they are still connected to the same fabric.

[0041] Continuing the current example, assume that configuration 150 isin effect. In response to device 122's query for a list of all devicesattached to fabric 110, the SNS would reply 540 only with the identityof device 120 since it is the only device sharing a zone with device122. The addresses of device 124 and loop 130 would be eliminated duringthe zone check 520 and therefore would not be included on the list ofaddresses sent to device 122 in step 530. Hence, device 122 would notknow about device 124 or loop 130, making it more difficult for device122 to communicate with those devices. Without device 124's address,device 122 cannot send messages to device 124. On the other hand, if theSNS provides to device 122 the correct address for a destination device,device 122 may send messages via the fabric 1 10 to that destinationdevice.

[0042] In this embodiment, the functions performed by the SNS changedepending on whether or not zoning is implemented. However, the SNSprotocol itself and the manner in which the devices query the SNS arenot changed by the implementation of zoning. In other words, the variousdevices query the SNS in the same manner, regardless of whether zoningis implemented. Zoning is implemented entirely by changing the SNS'sresponses to the queries. This is advantageous because no change isrequired in the devices themselves or their drivers in order toimplement zoning. For example, to upgrade a fabric without zoningcapability to one with zoning capability only requires the addition ofthe zone check software. No change to the devices is required.

[0043]FIG. 6 is a flow diagram of another preferred method of zoning. Instep 600, a source device obtains the address of a destination device.If the two devices are in a common zone, then the source device shouldbe permitted to send a message to the destination device. Otherwise,transmission of the message should be blocked. In step 610, the sourcedevice sends a message (i.e., a frame according to the Fibre Channelstandard) to the fabric 110 for routing to the destination device. Instep 620, the fabric 110 performs a zone check to confirm that thesource and destination devices are in a common zone. If they are, themessage is routed 630 to its final destination. Otherwise, the messageis not routed 640. Not routing the message 640 may result in differentactions being performed depending on the type of message being sent. Forexample, when the hardware zone check detects an illegal frame, a Class3 frame is discarded, whereas a Class 2 frame is given to the switchfirmware so that a reject signal can be transmitted to the sourcedevice.

[0044] The method illustrated in FIG. 6 is preferably implemented inaddition to the SNS-based method shown in FIG. 5. This providesadditional zoning protection in the event that a fabric deviceinadvertently obtains the address of a destination device not within itszone. For example, older devices connected to a fabric may not supportthe SNS function and rely instead on permanent device address listswhich may be inconsistent with the actual fabric configuration. In suchcases, it is desirable to have an additional method for enforcingzoning.

[0045] Within the fabric, the zone check may occur at any or all of anumber of locations. For example, referring again to FIG. 4, supposedthat device 122 desired to send a message to device 124 in violation ofconfiguration 150. The communications path might be N_Port 480 to F_Port442 to E_Port 444 to E_Port 424 to F_Port 432 to N_Port 470. The zonecheck may be performed at many different locations along this path.

[0046] In a preferred embodiment of the invention, the zone check isperformed at the destination port of the fabric (F_Port 432 in the aboveexample). The zone check preferably is not implemented by the ports onthe devices (i.e., the Nx_Ports) because this would require upgrading ofall devices in order to implement zoning, as opposed to just upgradingthe fabric 110. Of the various locations on the fabric 110, the sourceport F_Port 442 and destination port F_Port 432 are preferred becausethe communications path must contain these two ports. In contrast, thetwo E_Ports 444 and 424 would be bypassed if the communications path wasvia switch 450.

[0047] Zone checking at the destination port is preferable because it ismore important to protect devices from receiving messages sent by otherdevices outside their zone than it is to prevent devices from sendingmessages to other devices outside their zone. More specifically, eachfabric switch 420, 440, 450 may or may not be zoning-enabled, dependingon whether zoning software has been installed on that switch. If aswitch is zoning-enabled, the devices connected to it are not expectingto see messages from devices outside of their zones because they expectthe switch to enforce zoning. That is, the devices are zoning-aware.However, devices connected to a switch that is not zoning enabled haveno such expectations, i.e. they are zoning-unaware. A zoning-unawaredevice has no knowledge of zoning and is prepared to acceptcommunications from any other device in the fabric system.

[0048] When the zone check is performed by the destination port withinthe fabric communication pathway, a zoning-enabled switch will blockimproper transmissions from being sent to its attached zoning-awaredevice, in accordance with the device's expectations. In contrast, aswitch which is not zoning-enabled will not block impropertransmissions, but this is also in accordance with the destinationdevice's expectations since the destination device is zoning-unaware andis not expecting any screening of transmissions due to zoning.

[0049] Now consider the situation when the zone check is performed bythe source port. If the switch attached to the source device iszoning-enabled, messages will be properly filtered based upon theenabled zoning configuration. However, if the switch attached to thesource device is not zoning-enabled, messages will not be properlyfiltered. Unfortunately, in this case although the source device iszoning-unaware, the destination device may or may not be zoning-aware.Thus, a zoning-aware destination device may still receive an impropercommunication.

[0050] Referring again to FIG. 4, in a preferred embodiment, the zonecheck is implemented by a logic device on each FX_Port. There arenumerous ways to implement such logic devices, such as ApplicationSpecific Integrated Circuits (ASICs), Field Programmable Gate Arrays(FPGAs), Erasable Programmable Read-only Memory (EPROMs),microprocessors or microcontrollers, or Digital Signal Processors(DSPs), including software executing on any of the foregoing. Apreferred embodiment uses an ASIC as the logic device. Each ASICcontains fabric zoning configuration information in the form of a tableproviding a matrix of source and destination devices. Each potentialsource device and each destination device connected to the port would becontained in the matrix. This matrix is implemented as a bitmap, with abit to be set or cleared in each position. Permitted source/destinationdevice combinations would have their representative matrix bit set inthe bitmap. Each port would contain such a bitmap.

[0051] Assume configuration 150 is in effect. As an example, the bitmapfor F_Port 432 would contain bits which correspond to each of the otherFx_Ports 422, 442, and 452. The bits for F_Ports 422 and 442 wouldindicate that F_Port 432 is not permitted to receive communications fromthese ports; whereas the bit for FL_Port 452 would indicate that F_Port432 is permitted to receive communications from this port. Each of theASICs for the other Fx_Ports would contain analogous information. When amessage was received by F_Port 432, the zone check would be implementedby referencing the bitmap.

[0052] In another embodiment of the method of zone checking illustratedin FIG. 6, the zone check may be performed on the devices themselves asopposed to the fabric. A logic device for performing this zone checkcould be installed on each device attached to the fabric system. Such azone check could be performed by either the device sending the messageor by the receiving device.

[0053] In a preferred embodiment, the basic management of zones andconfigurations is accomplished in part by a fabric system administratorwho logs into a switch on the fabric and inputs zoning commands using asoftware interface. The administrator may use any switch in the fabricfor this purpose because a change made to the zoning information on oneswitch is propagated throughout all switches in the fabric. Other typesof management will be apparent to one of skill in the art. For example,the administrator may work from a dedicated device (e.g., a serverdedicated to managing the fabric and/or zoning) rather than through theindividual switches, or management functions may be performedautomatically by the fabric in response to commands from other computersrather than in response to inputs from a system administrator.

[0054] In a preferred embodiment of the invention, zoning management isbroken down into the following basic tasks: defining zones, definingzone configurations, and selecting which configuration in a set is to bein effect at any given time. To a certain extent, the software used toimplement zoning is flexible in regard to the order in which these stepsare performed. For example, it is possible to define a configurationthat refers to specific zones that have not yet been defined. The zonesmay then be defined at a later time, although it is preferable to definethe zones before the configuration containing the zones is put intoeffect. The following paragraphs describe preferred embodiments of eachof the basic tasks; other embodiments will be apparent.

[0055] Zones preferably are defined by identifying the devices which aremembers of that zone. Devices are typically identified by PhysicalFabric port number, Arbitrated Loop Physical Address (AL_PA), NodeWorldwide Name (Node WWN), or Port Worldwide Name. (Port WWN). PhysicalFabric port numbers are specified as a pair of decimal numbers “s,p”where “s” is the switch number (domain ID from 0 to 3 1) and “p” is theport number on that switch (0 to 15). For example, “2,12” specifies port12 on switch number 2. When a zone member is specified by physicalfabric port number, then any and all devices connected to that port arein the zone. If this port is an arbitrated loop, then all devices on theloop are in the zone. AL_PA addresses are 8-bit addresses used byprivate loop devices that operate in a Fibre Channel Private Loop DirectAttach (FC_PLDA) environment. AL_PA is discussed in greater detail inFibre Channel 2nd Generation Arbitrated Loop (FC-AL-2), revision 6.4(Project 1133-D), which is incorporated by reference in its entiretyherein.

[0056] A Worldwide Name uniquely identifies a Fibre Channel node or porton a device. Worldwide Names are specified as eight hex numbersseparated by colons, for example “10:00:00:60:69:00:00:8a. When a zonemember is specified by Node Worldwide Name then all ports on that deviceare in the zone. When a zone member is specified by Port Worldwide Namethen only that single device port is in the zone. Specifying zonemembers by Worldwide Name is advantageous because, for example, a devicewhich is so specified may be coupled to the fabric at any point or viaany fabric element and it will retain the same zone membership.

[0057] The type of zone members used to define a zone may be mixed andmatched. For example, a zone defined with the following members: “2,12;2,14; 10:00:00:60:69:00:00:8a” would contain whichever devices areconnected to switch 2, ports 12 and 14, and the device with either theNode Worldwide Name or Port Worldwide Name of “10:00:00:60:69:00:00:8a”.Alternatively, a fabric system administrator may assign an alias to azone to simplify repetitive entry of port numbers, AL_PAs or WorldwideNames. For example, the name “host” could be used as an alias for“10:00:00:60:69:00:00:8a”.

[0058] Zone configurations preferably are defined by specifying whichzones are members of that configuration. For example, zone configuration150 in FIG. 1 may be defined as “zone_140; zone_142” where zone_140 andzone_142 are zones defined as described in connection with FIG. 1. Whena zone configuration is in effect, all zones that are members of thatconfiguration are in effect. As with the definition of zones, commonnaming conventions, such as aliasing, may also be used with thedefinition of zone configurations.

[0059] More than one zone configuration may be defined for any givenfabric. For example, in FIGS. 1 and 2, configurations 150 and 210 aretwo different zone configurations which may be applied to fabric 110.The set of all zone configurations which have been defined for a fabricshall be referred to as the “total defined configuration set.”

[0060] The actual configuration which is in effect shall be referred toas the “effective configuration.” Communications between devices arebased on the effective configuration. The effective configuration may beselected by the fabric administrator or it may be programmed into thefabric. For example, in FIGS. 1 and 2, the fabric 110 may be programmedto automatically implement configuration 210 every Saturday from 9-11 pmin order to allow for regularly scheduled maintenance on loop 130 and toimplement configuration 150 at all other times.

[0061] A configuration is “compiled”, or reduced to a form usable by thefabric 110, each time that it is put into effect. For example,configuration 210 would be compiled every Saturday around 9 pm shortlybefore it is placed into effect, and configuration 150 would likewise becompiled every Saturday around 11 pm. The compilation procedure performsa number of functions, such as checking for undefined zone names orother inconsistencies, removing duplicate entries, resolving aliases,and converting Worldwide Names to switch and port addresses if, forexample, the fabric routes primarily based on switch and port addresses.

[0062] As part of the management function, configurations may also besaved. In a preferred embodiment, saving will store a copy of thecurrent “total defined configuration set” plus the name of the current“effective configuration” into a non-volatile storage medium, such aseach switch's flash memory. This “saved configuration set” isautomatically reloaded by the fabric switches upon power up, includingreinstating the effective configuration from the saved configurationset. Note that the saved configuration set may not reflect the mostcurrent total defined configuration set since changes may have been madesince the last save.

[0063] The zoning commands described above are only one specificembodiment of the zoning management features of the present invention.Other management functions and/or combinations of commands will beapparent. For example, when an administrator is modifying the totaldefined configuration set, changes may be periodically auto-saved ratherthan requiring the administrator to affirmatively save any changes. Asanother example, any number of command sets and user interfaces may beused to implement the basic tasks described above.

[0064] Another aspect of zoning management concerns the handling ofchanges to the fabric. For example, what happens to zoning when devicesare added to the fabric, or if multiple fabrics are merged into a singlefabric. The switch or fabric to be added may either be new, meaning ithas no pre-existing zoning information, or it may contain a previouslydefined set of zone configuration data. The following paragraphsdescribe preferred embodiments for handling these situations, althoughother embodiments will be apparent.

[0065] If a new switch is added to a fabric, zoning information iscopied from the fabric into the new switch. If a zone configuration isenabled in the fabric, then the same configuration becomes enabled inthe new switch. Adding a new fabric (i.e., a fabric in which all theswitches have no pre-existing zoning information) to an existing zonedfabric is very similar to adding a new switch. Zoning information iscopied from the existing zoned fabric into the switches of the newfabric. If a zone configuration is enabled, then the same configurationbecomes enabled in the new fabric switches.

[0066] If two fabrics that both contain some existing zone configurationinformation are joined, then the situation is more complex. The zoningsoftware will attempt to merge the two sets of zone configuration datatogether, but this is only possible if the two sets of data arecompatible. The simplest case is where both fabrics have identical zoneconfiguration data and the same configuration is enabled. In this case,the fabrics are compatible and they will join to make one larger fabricwith the same zone configuration in effect across the whole new fabric.If the fabrics have different zone configuration data, then the two setsof zoning information will be checked for compatibility and merged ifpossible.

[0067] If a merge is not possible because the two zoning configurationdata sets are incompatible, the fabric will be segmented. A merge is notpossible, for example, if the two zone configurations that are enabledare different, if different names are used by each fabric to refer tothe same zone, or if a zone with the same name in each fabric containsdifferent groups of devices in each fabric. If the merge is notpossible, then the fabric is logically segmented into two separatefabrics even though physically is it connected as a single fabric. Eachof the two new fabrics retains its original zone configuration.

[0068] Zones may also be configured to allow access between devices foronly certain types of communication. For example, a zone may beconfigured to permit read-only access between devices, as opposed to thedefault read-write access generally permitted between devices within thesame zone. Alternately, zones may also be configured as protocol zones,which restrict all devices within a zone to utilizing the samecommunications protocol. Such zone types may be implemented in a numberof ways. For example, referring to the previously described embodimentbased on the SNS and additional zoning software, the zoning software maybe modified to differentiate between zone types (e.g., normal,read-only, or protocol) and the SNS may respond to a query for addressesby providing a list of other devices, including both address and type ofcommunication. Similar changes may be made to the other embodimentsdescribed above.

[0069] Although the invention has been described in considerable detailwith reference to certain preferred embodiments, other embodiments arepossible. For example, zoning could be implemented via a centralized,versus distributed, method. In the previously described distributedmethod of implementing zoning, the zoning information is propagated toeach switch. However, this zoning information could also be containedand accessed in a centralized way, such as via a central zoning serverfor the entire fabric system. Therefore, the scope of the appendedclaims should not be limited to the description of the preferredembodiments contained herein.

1. In a system comprising a first fabric and a plurality of devicescoupled to the first fabric by Fibre Channel connections, the devicesotherwise being able to communicate through the first fabric, a methodfor logically organizing the devices comprising: accessing a definitionof a first configuration including at least one zone, each zoneincluding at least one device as a member of the zone; and responsive tothe definition of the first configuration, restricting communicationsbetween the devices coupled to the first fabric.
 2. The method of claim1 wherein the first configuration is an effective one of a plurality ofconfigurations.
 3. The method of claim 1 further comprising: storing thedefinition of the first configuration in a non-volatile medium; andreinstating the first configuration after a loss of power to the firstfabric.
 4. The method of claim 1 wherein: in the definition of the firstconfiguration, at least one zone is characterized by a type ofcommunication; and the step of restricting communications includesrestricting communications between devices which are member of said zoneto said type of communication.
 5. The method of claim 1 wherein, in thedefinition of the first configuration, at least one device is identifiedby a name which is independent of the device's location on the fabric.6. The method of claim 5 wherein the name includes a Worldwide PortName.
 7. The method of claim 5 wherein the name includes a WorldwideNode Name.
 8. The method of claim 1 wherein, in the definition of thefirst configuration, at least one device is identified by an ArbitratedLoop Physical Address.
 9. The method of claim 1 wherein: the step ofaccessing the definition of the first configuration includes: storingthe definition of the first configuration in the first fabric, and thefirst fabric accessing the definition; and the step of restrictingcommunications between the devices includes, responsive to thedefinition of the first configuration, the first fabric restrictingcommunications between the devices coupled to the first fabric.
 10. Themethod of claim 1 wherein the first fabric comprises one or moreinterconnected fabric elements to which the devices are coupled, andwherein: the step of accessing the definition of the first configurationincludes: storing the definition of the first configuration in eachfabric element, and each fabric element accessing the definition; andthe step of restricting communications between the devices includes,responsive to the definition of the first configuration, each fabricelement restricting communications for the devices coupled to saidfabric element.
 11. The method of claim 10 further including: responsiveto a coupling of an additional fabric element to the first fabric,determining whether any definition for any configuration is stored insaid fabric element; and responsive to no definitions being stored inthe additional fabric element, storing the definition of the firstconfiguration in the additional fabric element.
 12. The method of claim1 wherein the first fabric comprises one or more interconnected fabricelements to which the devices are coupled, the method furthercomprising: responsive to a coupling of an additional fabric element tothe first fabric, modifying the definition of the first configuration toaccount for the additional fabric element.
 13. The method of claim 1further comprising: responsive to a merging of the first fabric with asecond fabric, modifying the definition of the first configuration toaccount for the second fabric.
 14. The method of claim 1 furthercomprising: compiling the definition of the first configuration; andwherein the step of restricting communications between the devicescoupled to the first fabric is responsive to the compiled definition ofthe first configuration.
 15. A fabric element for use in a systemcomprising a first fabric and a plurality of devices coupled to thefirst fabric by Fibre Channel connections, the devices otherwise beingable to communicate through the first fabric, the fabric elementcomprising: a plurality of ports, each port adapted to be coupled to adevice by a Fibre Channel connection; a storage medium for storing adefinition of a first configuration including at least one zone, eachzone including at least one device as a member of the zone; and a logicdevice coupled to the plurality of ports and to the storage medium, for,responsive to the definition of the first configuration, restrictingcommunications for devices coupled to the plurality of ports.
 16. Thefabric element of claim 15 wherein the storage medium includes anonvolatile medium.
 17. The fabric element of claim 15 furthercomprising: a compiler coupled to the storage medium and to the logicdevice for compiling the definition of the first configuration for useby the logic device.
 18. A computer readable medium containing softwarefor logically organizing a plurality of devices coupled to a firstfabric by Fibre Channel connections, the devices otherwise being able tocommunicate through the first fabric, the software for instructing aprocessor to perform the steps of: accessing a definition of a firstconfiguration including at least one zone, each zone including at leastone device as a member of the zone; and responsive to the definition ofthe first configuration, restricting communications between the devicescoupled to the first fabric.
 19. The computer readable medium of claim18 wherein: in the definition of the first configuration, at least onezone is characterized by a type of communication; and the step ofrestricting communication includes restricting communications betweendevices which are member of said zone to said type of communication. 20.The computer readable medium of claim 18 wherein, in the definition ofthe first configuration, at least one device is identified by a namewhich is independent of the device's location on the fabric.
 21. Thecomputer readable medium of claim 18 wherein, in the definition of thefirst configuration, at least one device is identified by an ArbitratedLoop Physical Address.
 22. The computer readable medium of claim 18wherein the software is further for instructing the processor to performthe step of: storing the definition of the first configuration.
 23. Thecomputer readable medium of claim 18 wherein the software is further forinstructing the processor to perform the step of: responsive to amerging of the first fabric with a second fabric, modifying thedefinition of the first configuration to account for the second fabric.24. The computer readable medium of claim 18 wherein the software isfurther for instructing the processor to perform the step of: compilingthe definition of the first configuration; and wherein the step ofrestricting communications between the devices coupled to the firstfabric is responsive to the compiled definition of the firstconfiguration.